home *** CD-ROM | disk | FTP | other *** search
/ Champak 26 (Anniversary Edition) / Volume 26 [Anniversary Edition] - JOGO DISK .iso / DEPOSITO / REmovido / Esportes / airballs.swf / scripts / frame_6 / PlaceObject2_81_26 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2006-07-26  |  800b  |  45 lines

  1. onClipEvent(enterFrame){
  2.    if(_parent.score.game)
  3.    {
  4.       vx = (_parent._xmouse - _X) / 2;
  5.       if(_root.score.game)
  6.       {
  7.          _X = _X + vx;
  8.       }
  9.       if(right < _X)
  10.       {
  11.          _X = right;
  12.       }
  13.       if(_X < left)
  14.       {
  15.          _X = left;
  16.       }
  17.       if(state == "normal")
  18.       {
  19.          force = 1;
  20.          points = 3;
  21.       }
  22.       else if(state == "crouch")
  23.       {
  24.          force = 0.8;
  25.          points = 2;
  26.       }
  27.       else if(state == "bighead")
  28.       {
  29.          force = 1.7;
  30.          points = 10;
  31.       }
  32.       else if(state == "smallhead")
  33.       {
  34.          if(state_timer < getTimer())
  35.          {
  36.             state = "normal";
  37.          }
  38.          else
  39.          {
  40.             force = 1.1;
  41.          }
  42.       }
  43.    }
  44. }
  45.